//
//  ViewController.swift
//  Server
//
//  Created by 叶情宇 on 2017/7/4.
//  Copyright © 2017年 叶情宇. All rights reserved.
//

import Cocoa

class ViewController: NSViewController {
    @IBOutlet weak var serverLabel: NSTextField!
    
    fileprivate lazy var server : ServerManager = ServerManager()
    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
    }
    @IBAction func openServer(_ sender: Any) {
        serverLabel.stringValue = "服务器开启ing"
        server.startRuning()
        
    }
    
    @IBAction func closeServer(_ sender: Any) {
        serverLabel.stringValue = "服务器未开启"
        server.stopRuning()
    }
    
    
}

